<!DOCTYPE html>
<html>
    
    <head>
        <meta charset="UTF-8">
        <title>小鱼ADMIN</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/public/static/css/font.css">
        <link rel="stylesheet" href="/public/static/css/bgadmin.css">
        <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
        <script type="text/javascript" src="/public/static/js/jquery.form.js"></script> 
    </head>
    
    <div class="bg-body">
		<form  action="#" method="post" id="mainForm" class="layui-form layui-form-pane">
			<div class="layui-form-item">
				<label for="name" class="layui-form-label">
					<span class="bg-red">*&nbsp;&nbsp;</span>商品属性名称
				</label>
				<div class="layui-input-inline">
					<input type="text" id="attr_name_id" name="attr_name" required="" lay-verify="required"
					autocomplete="off" value="{$arrData.attr_name}" class="layui-input">
				</div>
				
				<label for="name" class="layui-form-label">
					<span class="bg-red">*&nbsp;&nbsp;</span>英文名称
				</label>
				<div class="layui-input-inline">
					<input type="text" id="attr_en_name_id" name="attr_en_name" required="" lay-verify="required"
					autocomplete="off" value="{$arrData.attr_en_name}" class="layui-input">
				</div>
			</div>	

			<div class="layui-form-item">
				<label class="layui-form-label"><span class="bg-red">*&nbsp;&nbsp;</span>商品类型</label>
				<div class="layui-input-inline">
				  <select name="type_id" id="type_id" lay-filter="aihao" required="" lay-verify="required">
					<option value=""></option>
					{volist name="typeData" id="vo1"} 
					<option value="{$vo1.id}">{$vo1.caty_name}</option>
					{/volist}
				  </select>
				</div>
				
				<label class="layui-form-label"><span class="bg-red">*&nbsp;&nbsp;</span>录入方式</label>
				<div class="layui-input-inline">
				  <select name="text_type" id="text_type_id"  lay-filter="text_type" required="" lay-verify="required">
					<option value=""></option>
					<option value="1">手工录入</option>  <!--手工录入-->
					<option value="2">从下面的列表中选择</option>  <!--从下面的列表中选择-->
					<option value="3">多行文本框</option>  <!--多行文本框-->
				  </select>
				</div>
			</div>
			
			<div class="layui-form-item layui-form-text">
				<label for="desc" class="layui-form-label">
					可选值列表 (多个属性值用英文逗号隔开):
				</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入内容" id="attr_values_id" name="attr_values" class="layui-textarea"   disabled>{$arrData.attr_values}</textarea>
				</div>
			</div>
			
			<div class="layui-form-item">
			
			<a class="layui-btn" lay-submit=""  id="save" lay-filter="add">保存</a>
		  </div>
		</form>
		<input type="hidden" name="attr_id" id="attr_id" value="{$arrData.id}">
	</div>
    </body>
    <script type="text/javascript">
    $(function(){
        $("#type_id").val("{$arrData.type_id}");
		$("#text_type_id").val("{$arrData.text_type}");
    })
    </script>
	<script type="text/javascript" src="/public/static/crm/js/goodsAttribute/editAttribute.js"></script>
</html>